<div class="row">
<small>
 <div class="span3 bs-docs-sidebar ">
 	<*include file="<*$controller*>/location.tpl"*>
  </div>
   <h2><span style="color:red">如果问题处理完毕，结果将已通知的形式。告知家长，请慎重回答。</span></h2>
  <div class="span6">
    <h3>回复反馈信息</h3>
	<form action="/<*$controller*>/opedit" method="post" id="f1" >    
      <div class="control-group">
        <label class="control-label" for="version_type1">来源</label>
        <div class="controls">
         <*$result.nickname*>[<*if $result.source*><*$result.source*><*else*>未知<*/if*>]         
        </div>
      </div>
      <div class="control-group">
        <label class="control-label" for="version_no">反馈内容</label>
        <div class="controls">
           <p class="span6" style="word-break: break-all;  word-wrap: break-word; white-space: pre;  white-space: pre-wrap;"> <*$result.content*></p>
        </div>
      </div>
      
       <div class="control-group">
        <label class="control-label" >问题类型</label>
        <div class="controls">
        <*if $result.isover==0*>
         <label class="radio inline">
       		 <input type="radio" name="optionsRadios" id="optionsRadios1" value="1"  <*if $result.type eq 1*> checked <*/if*>> bug
        </label> 
        <label class="radio inline">
       		  <input type="radio" name="optionsRadios" id="optionsRadios1" value="2"  <*if $result.type eq 2*> checked <*/if*>> 新功能
        </label>
        <label class="radio inline">
       		<input type="radio" name="optionsRadios" id="optionsRadios1" value="3"   <*if $result.type eq 3*> checked <*/if*> > 建议
        </label>
        <label class="radio inline">
       		 <input type="radio" name="optionsRadios" id="optionsRadios4" value="4"   <*if $result.type eq 4*> checked <*/if*>> 用户个案
        </label> 
         <label class="radio inline">
       		 <input type="radio" name="optionsRadios" id="optionsRadios5" value="5"  <*if $result.type eq 5*> checked <*/if*>> 忽略
        </label>  
        <*else*>
      			  <*if $result.type eq 1*> 
                   bug
       			  <*else if $result.type eq 2*> 
                  新功能
       			  <*else if $result.type eq 3*> 
                  建议
       			  <*else if $result.type eq 4*> 
                  用户个案
       			  <*else if $result.type eq 5*> 
                  忽略
                 <*/if*>
        <*/if*>   
        </div>
      </div>
      
      <div class="control-group">
        <label class="control-label" >记录</label>
        <div class="controls" id="processlist"> 
        	 <*$result.process*>
        </div>
      </div>
      <*if $result.isover==0*>
      <div class="control-group">
        <label class="control-label" >回复</label>
        <div class="controls">
         <input type="hidden" value="<*$result.feedbackid*>" name="feedbackid" id="feedbackid"/>
          <textarea name="process" id="process" rows="10" class="span4" placeholder="答复内容"></textarea>
        </div>
      </div> 
     
      <div class="control-group">
        <label class="control-label" >问题状态</label>
        <div class="controls">
           <input type="checkbox" name="typeselect"  id="typeselect" value="1"  />&nbsp;<span style=" color:red; font-size:14px">问题已经处理完毕</span>
        </div>
      </div>
      <*/if*>
      <div  class="control-group">
         <div id="notice">
          
         </div>      
      </div> 
      
      
      <div class="form-actions">
     <*if $result.isover==0*>
     	 <!--<button type="submit" class="btn btn-large  btn-success">提交反馈内容</button>-->
         <button type="submit" class="btn-large btn-primary btn" >提交反馈内容 </button>
         <!--<button class="btn btn-large  btn-success" type="button" onclick="opfeed()">提交反馈内容</button>-->
         <button type="button" class="btn btn-large" onclick="window.location='/<*$controller*>/index'" >返回</button>
         <*else*>
          <button class="btn btn-large btn-block btn-success" type="button"  onclick="window.location='/<*$controller*>/index'" >返回</button>
         <*/if*> 
  
      </div> 
      
      
       
    </form>
  </div>
</div>
</small>
<!--<script type="text/javascript" src="/js/prototype.js"></script>
<script type="text/javascript">
function opfeed()
{  
	var content = document.getElementById('process').value;	
	 
	var feedbackid = document.getElementById('feedbackid').value;	
	var typeselect = document.getElementById('typeselect').checked ;  
	var  list = document.getElementsByName("optionsRadios");
	//alert(content);alert(feedbackid);alert(typeselect);alert(list);exit;
    var  typelist='';
	  for( i =0 ; i<list.length; i++ )
  		{
			if( list[i].checked==true ){
				 
				var  typelist=i+1;
				 
				} 
  		}
	
	typeselect=typeselect==1?1:0; 
	var url     = '/<*$controller*>/op'; 
	var pars = 'content=' + content+'&feedbackid='+feedbackid+'&type='+typeselect+'&typelist='+typelist;
	var myAjax = new Ajax.Request( url, { method: 'post', parameters: pars, onComplete:showResponse_course});

}

function showResponse_course(originalRequest)
{
	var typeselect = document.getElementById('typeselect').checked ;	
	typeselect=typeselect==1?1:0;
	//notice
	  //alert(typeselect);exit;
	if(originalRequest.responseText =='-1'){
		 
	 document.getElementById('notice').innerHTML = '提交方式错误！';
		return false;
	}else if(originalRequest.responseText =='-2'){
	 document.getElementById('notice').innerHTML = '参数错误！';
		return false;
	}else if(originalRequest.responseText =='-3'){
	document.getElementById('notice').innerHTML = '内容不能为空！';
		return false;
	}else if(originalRequest.responseText =='-4'){
		document.getElementById('notice').innerHTML = ''; 
		return false;
	}else if(originalRequest.responseText =='-5'){
	document.getElementById('notice').innerHTML = '操作失败！';
		return false;
	}else if(originalRequest.responseText =='-6'){
	document.getElementById('notice').innerHTML = '内容不能为空！';
		return false;
	}else if(originalRequest.responseText =='-7'){
	document.getElementById('notice').innerHTML = '请选择为题类型！';
		return false;
	} 
  
	if(typeselect==1){
		//父窗口刷新
	// parent.EmailBox.hide();
	// parent.location.reload();//刷新主窗口
	 
	 //表示问题结束，跳转页面
	  location.href='/<*$controller*>/index/type/ispend'; 
	}
	
   document.getElementById('processlist').innerHTML = originalRequest.responseText;

}
</script> 
-->